package com.hdax.gulimall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.hdax.common.utils.PageUtils;
import com.hdax.gulimall.product.entity.PmsAttrEntity;
import com.hdax.gulimall.product.entity.PmsAttrGroupEntity;
import com.hdax.gulimall.product.entity.ProductAttrValueEntity;
import com.hdax.gulimall.product.vo.AttrGroupRelationVo;
import com.hdax.gulimall.product.vo.AttrResponseVo;
import com.hdax.gulimall.product.vo.AttrVo;

import java.util.List;
import java.util.Map;

/**
 * 商品属性
 *
 * @author xiaohou
 * @email s2687781461@qq.com
 * @date 2023-04-07 17:41:13
 */
public interface PmsAttrService extends IService<PmsAttrEntity> {

    PageUtils queryPage(Map<String, Object> params);

    void saveAttr(AttrVo attrVo);


    AttrResponseVo getInfo(Long attrId);

    void updateAttr(AttrVo attrvo);

    PageUtils queryBaseAttrList(Map<String, Object> paramd, Long catelogId, String type);


    List<PmsAttrEntity> getRelationAttr(Long attrgroupId);


    void deleteRelation(AttrGroupRelationVo... attrGroupRelationVo);

    PageUtils getNoAttr(Long attrgroupId, Map<String, Object> map);

    void removeDetail(List<Long> asList);


    List<Long> selectSearchAttrs(List<Long> collect1);
}

